<form action="" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{form.cate}}
    <!--<input type="file" name="file">-->
    {{form.file}}
    <input type="submit" value="上传" />
</form>